﻿using System;

namespace DayDayUp.Core
{
    public class AppConst
    {
        #region 系统中判断未赋值的判断，只可以用于比较判断，不能用于赋值

        public const string StringNull = "";
        public const int IntNull = -999999;
        public const decimal DecimalNull = -999999;

        //public static DateTime DateTimeNull = DateTime.Parse("1900-01-01");
        public static DateTime DateTimeNull = System.Data.SqlTypes.SqlDateTime.MinValue.Value;
        
        public const string DateTimeNullStr = "1900-01-01";
        #endregion
        public const string AllSelectString = "--- ALL ---";
        public const string DecimalToInt = "#########0"; //用于point的显示，一般来说currentprice应该没有分。
        public const string DecimalFormat = "#########0.00";
        public const string DecimalFormatLong = "#########0.000";
        public const string DecimalFormatWithGroup = "#,###,###,##0.00";
        public const string DecimalFormatWithCurrency = "￥#########0.00";
        public const string DateFormat = "yyyy-MM-dd";
        public const string DateFormatLong = "yyyy-MM-dd HH:mm:ss";
        public const string IntFormatWithGroup = "#,###,###,##0";
        public const string DateFormatLen8 = "yyyyMMdd";
        public const string DateFormatInChina = "yyyy年MM月dd日";
    }
}
